package net.sx.minemodule.mvp.activities;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.base.KRefreshListActivity;
import com.kedll.library.util.MyUtils;

import net.sx.minemodule.R;
import net.sx.minemodule.databinding.MineActivityMinePackageSelectCardBinding;
import net.sx.minemodule.mvp.presenters.MinePackageSelectCardPresenter;

/**
 * @author 11470
 */
@Route(path = ARouterPath.PATH_MINE_CARD_PACKAGE)
public class MinePackageSelectCardActivity extends KRefreshListActivity<MineActivityMinePackageSelectCardBinding, MinePackageSelectCardPresenter> {



    @Override
    protected int getLayout() {
        return R.layout.mine_activity_mine_package_select_card;
    }

    @Override
    protected void initToolBar(Bundle savedInstanceState) {
        super.initToolBar(savedInstanceState);
        setTitle("选择银行卡");
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        super.initData(savedInstanceState);
        list.setBackgroundResource(R.color.white);
        int padding = MyUtils.dp2px(14);
        list.setPadding(padding, padding, padding, 0);
        refreshLayout.setEnabled(false);
    }

    @Override
    protected MinePackageSelectCardPresenter getPresenter() {
        return new MinePackageSelectCardPresenter(this);
    }
}
